<table class="xbtable" cellspacing="0" cellpadding="0">
	<tr>
        <th class="col1"><%= _('Title')%></th>
        <th class="col2"><%= _('Proposed By')%></th>
        <th class="col3"><%= _('Requested On')%></th>
        <th class="col4"><%= _('Due Date')%></th>
    	<th class="col7"><%= _('Actions')%></th>
	</tr>
	<% reports.each do |request| %>
		<% 
			view_action = request.all_submitted ? 'admin_view_completed_report' : 'admin_view_pending' 
		%>
		<tr>
			<td class="col1">
				<%= link_to request.title_and_period, :action => view_action, :id => request.id %>
			</td>
			<td class="col2"><%=request.requestor.name rescue nil %></td>
			<td class="col3"><%=request.created_at.strftime("%x") rescue nil %></td>
			<td class="col4"><%=request.due_date.strftime("%x") rescue nil %></td>
			<td class="col7">
				<%= link_to image_tag('ic_excel.gif'), :controller=>"excelsheet_generator", :action=>'admin_report', :id => request.id %>
				<%= link_to(image_tag('ic_view.gif'), :action => view_action, :id => request.id)%>
				<%= link_to(image_tag('b_edit.gif'), :action => 'admin_edit', :id => request.id)%>
			</td>
		</tr>
	<% end %>
</table>